package {
	import com.bumpslide.ui.Applet;
	import com.bumpslide.ui.TextPanel;
	import com.bumpslide.util.LoremIpsum;

	import flash.events.Event;

	/**
	 * @mxmlc -sp+=../../classes -debug
	 * @author David Knape
	 */
	public class SelectableTextPanel extends Applet {

		private var panel:TextPanel;
		
		override protected function addChildren():void {
			super.addChildren();
			
			panel = new TextPanel();
			panel.text = LoremIpsum.TEXT; 
			addChild( panel );
			
			panel.textbox.content_txt.mouseEnabled = true;
			panel.textbox.content_txt.selectable = true;
		}

		override protected function onStageResize(e:Event):void {
			super.onStageResize(e);
			
			panel.move( 100, 100 );
			panel.setSize( width-200, height-200 );
		}
	}
}
